<?php
App::uses('AppController', 'Controller');
/**
 * Permissions Controller
 *
 * @property Permission $Permission
 */
class PermissionsController extends AppController {

	public function beforeFilter() {
		parent::beforeFilter();
		Controller::loadModel('Role');
	}
	/**
	 * index method
	 *
	 * @return void
	 */
		public function admin_index() {
			$actions = $this->Action->find('all');
			$roles = $this->Role->find('all');

			$this->Permission->recursive = 0;
			$this->set('permissions', $this->paginate());
			$this->set('actions', $actions);
			$this->set('roles', $roles);
		}
}
